package Class.Method.MethodTest01;

import java.util.*;

/**
 * Enjoy programming!!!
 * Time: 2021/11/6 -  16:15
 */
public class JudgeParity {

    //    A.id = a;
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.print("请输入：");
        int a = in.nextInt();
        if (AA.Judge(a)) {
            System.out.println(a + "是奇数");
        }
        else{
            System.out.println(a + "是偶数");
        }
    }
}

class AA {
    public static boolean Judge(int a) {
       return 0 != a % 2;
    }
}
